#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void sort(int* p, int n)
{
    int b, c, t;
    for (c = 0; c < n - 1; c++)
        for (b = c + 1; b < n; b++)
            if (*(p + c) > *(p + b))
                t = *(p + c), * (p + c) = *(p + b), * (p + b) = t;
    for (b = 0; b < n; b++)
        printf("%d ", *(p + b));
}
main() {
    int n, b, * p, a[20];
    p = a;
    scanf("%d", &n);
    for (b = 0; b < n; b++)
        scanf("%d", &a[b]);
    sort(p, n);
}